(bug 8024) Introduce "send me copies of emails I send to others" preference
authorRob Church <robchurch@users.mediawiki.org>
Fri, 1 Dec 2006 18:39:43 +0000 (18:39 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 1 Dec 2006 18:39:43 +0000 (18:39 +0000)
RELEASE-NOTES
includes/SpecialEmailuser.php
includes/SpecialPreferences.php
includes/User.php
languages/messages/MessagesEn.php

index bf49107..394e7ba 100644 (file)
@@ -229,8 +229,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php
 * Add AuthPluginSetup hook to override $wgAuth after configuration
 * Fix regression in authentication hook auto-creation on login
-* (bug 8110) Allow spaces in ISBNs.
-
+* (bug 8110) Allow spaces in ISBNs
+* (bug 8024) Introduce "send me copies of emails I send to others" preference
 
 == Languages updated ==
 
index 16270b1..38745a3 100644 (file)
@@ -123,7 +123,7 @@ class EmailUserForm {
 <span id='wpTextLabel'><label for=\"wpText\">{$emm}:</label><br /></span>
 <textarea name=\"wpText\" rows='20' cols='80' wrap='virtual' style=\"width: 100%;\">" . htmlspecialchars( $this->text ) .
 "</textarea>
-" . wfCheckLabel( $emc, 'wpCCMe', 'wpCCMe' ) . "<br />
+" . wfCheckLabel( $emc, 'wpCCMe', 'wpCCMe', $wgUser->getBoolOption( 'ccmeonemails' ) ) . "<br />
 <input type='submit' name=\"wpSend\" value=\"{$ems}\" />
 <input type='hidden' name='wpEditToken' value=\"$token\" />
 </form>\n" );
index 39f2fc5..29614a8 100644 (file)
@@ -486,6 +486,7 @@ class PreferencesForm {
                $this->mUsedToggles[ 'enotifusertalkpages' ] = true;
                $this->mUsedToggles[ 'enotifminoredits' ] = true;
                $this->mUsedToggles[ 'enotifrevealaddr' ] = true;
+               $this->mUsedToggles[ 'ccmeonemails' ] = true;
                $this->mUsedToggles[ 'uselivepreview' ] = true;
 
                # Enotif
@@ -688,6 +689,7 @@ class PreferencesForm {
                                $wgOut->addHTML(
                                "<div><input type='checkbox' $emfc $disabled value='1' name='wpEmailFlag' id='wpEmailFlag' /> <label for='wpEmailFlag'>$emf</label></div>" );
                        }
+                       $wgOut->addHtml( $this->getToggle( 'ccmeonemails' ) );
 
                        $wgOut->addHTML( '</fieldset>' );
                }
index ea05f6a..73742f5 100644 (file)
@@ -56,6 +56,7 @@ class User {
                'forceeditsummary',
                'watchlisthideown',
                'watchlisthidebots',
+               'ccmeonemails',
        );
 
        /**
index 2ff707c..5e7a573 100644 (file)
@@ -481,6 +481,7 @@ parent class in order maintain consistency across languages.
 'tog-watchlisthideown' => 'Hide my edits from the watchlist',
 'tog-watchlisthidebots' => 'Hide bot edits from the watchlist',
 'tog-nolangconversion'         => 'Disable variants conversion',
+'tog-ccmeonemails' => 'Send me copies of emails I send to other users',
 
 'underline-always' => 'Always',
 'underline-never' => 'Never',